<div id="LS"><div id="LSW1" class="APkg">

<?php if(D_Auth_Userco::getInstance()->hasIdentity()):?>
	<div class="LS1CD1">
		<h2 class="CHUserName1">
		<?php if(D_Auth::user()->Nickname){echo D_Auth::user()->Nickname;}
				else{}
		?></h2>
		<div class="LS1CD1W1 AP0 APkg">
			<div class="CDLoginMenu1">
				<ul class="CU1">
					<li><a href="<?php echo ROOT_URL."/account/logout";?>"><img width="208" height="32" onmouseover="swapimg(this)" onmouseout="swapimg(this)" alt="ログアウト" src="<?php echo ROOT_URL."/public"?>/img/common/BtnLSLoginMenu1_f2.jpg"></a></li>
					<li><a href="<?php echo ROOT_URL."/account/usersetting";?>"><img width="208" height="32" onmouseover="swapimg(this)" onmouseout="swapimg(this)" alt="ご登録情報の変更" src="<?php echo ROOT_URL."/public"?>/img/common/BtnLSLoginMenu2_f2.jpg"></a></li>
					<li><a href="<?php echo D_URL::getLink("communicationlog"); ?>"><img width="208" height="32" onmouseover="swapimg(this)" onmouseout="swapimg(this)" alt="お問い合わせリスト" src="<?php echo ROOT_URL."/public"?>/img/common/BtnLSLoginMenu3.jpg"></a>
						<div class="CD1">
							<ul class="CD1CU1">
							<li><?php $list_order = D_Utils::listOrder();$i=1;?></li>
							<?php if(count($list_order)):
								foreach ($list_order as $order):	?>
								
								<?php if($i == count($list_order)):?>
									<li class="RLast"> <a href="<?php echo ROOT_URL;?>/service/servicedetail/id/<?php echo $order['ServiceID'];?>"><?php echo $order['ServiceName'];?> </a> </li>
								<?php else: ?>
									<li> <a href="<?php echo ROOT_URL;?>/service/servicedetail/id/<?php echo $order['ServiceID'];?>"><?php echo $order['ServiceName'];?> </a> </li>
								<?php endif;?>
							<?php $i++;endforeach;endif;?>	
							<!-- /CD1CU1 --></ul>
						<!-- /CD1 --></div>
					</li>
					<li><a href="<?php echo ROOT_URL."/service/bookmarklist"; ?>"><img width="208" height="32" onmouseover="swapimg(this)" onmouseout="swapimg(this)" alt="お気に入り" src="<?php echo ROOT_URL."/public"?>/img/common/BtnLSLoginMenu4.jpg"></a>
						<div class="CD1">
							<ul class="CD1CU1" id="ulBookmarkList">
							<?php $list_bookmark = D_Utils::listBookmark();$i=1;?>
							<?php if(count($list_bookmark)):
								foreach ($list_bookmark as $bookmark):	?>
								
								<?php if($i == count($list_bookmark)):?>
									<li class="RLast"> <a href="<?php echo ROOT_URL;?>/service/servicedetail/id/<?php echo $bookmark['ServiceID'];?>"><?php echo $bookmark['ServiceName'];?> </a> </li>
								<?php else: ?>
									<li> <a href="<?php echo ROOT_URL;?>/service/servicedetail/id/<?php echo $bookmark['ServiceID'];?>"><?php echo $bookmark['ServiceName'];?> </a> </li>
								<?php endif;?>
							<?php $i++;endforeach;endif;?>	
							<!-- /CD1CU1 --></ul>
						<!-- /CD1 --></div>
					</li>
				<!-- /CU1 --></ul>
			<!-- /CDLoginMenu1 --></div>
	<!-- /LS1CD1/LS1CD1W1 --></div></div>
	
<?php else:?>
	<div class="LS1CD1">
		<h2><img src="<?php echo ROOT_URL."/public"?>/img/common/TtlLS1.jpg" alt="依頼先をお探しの方" width="210" height="25" /></h2>
		<div class="LS1CD1W1 APkg">
			<div class="CDLogin1">
				<p class="CPBtn1"><a href="<?php echo ROOT_URL."/account/login";?>"><img onmouseover="swapimg(this)" onmouseout="swapimg(this)" src="<?php echo ROOT_URL."/public"?>/img/common/BtnLSLogin1.jpg" alt="ログイン" /></a></p>
				<ul class="CU1">
					<li><a href="<?php echo ROOT_URL."/account/reissuepwd";?>">パスワードを忘れたら</a></li><li><a href="<?php echo ROOT_URL."/account/guide";?>">ご利用ガイド</a></li>
				<!-- /CU1 --></ul>
				<p class="CPBtn1"><a href="<?php echo ROOT_URL."/account/register";?>">
				<img onmouseover="swapimg(this)" onmouseout="swapimg(this)" src="<?php echo ROOT_URL."/public"?>/img/common/BtnLSMembership1.jpg" alt="無料 新規会員登録" />
				</a></p>
				<ul class="CU1">
					<li><a href="/">初めての方へ</a></li>
				<!-- /CU1 --></ul>
			<!-- /CDLogin1 --></div>
	<!-- /LS1CD1/LS1CD1W1 --></div></div>
<?php endif;?>
	
	<?php 
	$request = Zend_Controller_Front::getInstance()->getRequest(); 
	$cat = $request->getParam('cat',-2);
	$state = $request->getParam('state',-2);
	?>

	<div class="LS1CD1">
		<h2><img src="<?php echo ROOT_URL."/public"?>/img/common/TtlLS2.jpg" alt="条件で探す" width="210" height="25" /></h2>
		<div class="LS1CD1W1 APkg">
<form action="#">
			<div class="CDSearch1">
				<div class="CD1">
					<h3 class="AMBm5"><img src="<?php echo ROOT_URL."/public"?>/img/common/TtlLS2_1.jpg" alt="カテゴリー" width="68" height="13" /></h3>
					<select name="select1" size="4" class="SSlct1" id="ddlLSCategory">
						<?php $array_category = D_Utils::getAllCategory();
							if(count($array_category) > 0):
							foreach ($array_category as $parent):	
						?>
						<optgroup label="<?php echo $parent['Name'];?>">
							<?php $list_sub = $parent['List'];?>
							<?php if(count($list_sub)): ?>
							<?php foreach ($list_sub as $sub) :	?>
							<optgroup label="&nbsp;&nbsp;<?php echo $sub['Name'];?>">
								<?php $list_small = $sub['List']; ?>
								<?php if(count($list_small) > 0):?>
								<?php foreach ($list_small as $small):?>
									<option value="<?php echo $small['CategoryID'];?>" <?php if($cat==$small['CategoryID']) echo " selected='selected' "; ?>>&nbsp;&nbsp;<?php echo $small['Name'];?></option>
								<?php endforeach;endif;?>
							</optgroup>
							<?php endforeach;endif;?>
						</optgroup>
						<?php endforeach;endif;?>
						
					</select>
				<!-- /CD1 --></div>
				<div class="CD1">
					<h3 class="AMBm5"><img src="<?php echo ROOT_URL."/public"?>/img/common/TtlLS2_2.jpg" alt="対象エリア" width="68" height="13" /></h3>
					<select name="select1" size="4" class="SSlct1"  id="ddlLSState">
					<option value="-1" <?php if($state==-1) echo " selected='selected' "; ?>>全国</option>
					<?php
						$arrArea=D_Utils::getAllState(); 
						for($i=0; $i<count($arrArea); $i++):
					?>
						<optgroup label="<?php echo $arrArea[$i]['AreaName'];?>">
						<?php 
						$arrState=$arrArea[$i]['State']; 
						for($j=0; $j<count($arrState); $j++): 
						?>
							<option value="<?php echo $arrState[$j]['StateID']; ?>" <?php if($state==$arrState[$j]['StateID']) echo " selected='selected' "; ?>>
								<?php echo $arrState[$j]['Name']; ?>
							</option>
						<?php endfor; ?>
						</optgroup>
					<?php endfor; ?>
					</select>
				<!-- /CD1 --></div>
				
				<div class="CD1">
				<!--  tam thoi bo
					<h3 class="AMBm5"><img src="<?php echo ROOT_URL."/public"?>/img/common/TtlLS2_3.jpg" alt="対象企業規模" width="81" height="13" /></h3>
					<select name="select1" class="SSlct1 AMBm10"  id="ddlLSEmployees">
						<option value="">選択してください</option>
						<option value="10人未満">10人未満</option>
						<option value="50人未満">50人未満</option>
						<option value="100人未満">100人未満</option>
						<option value="300人未満">300人未満</option>
						<option value="300人以上">300人以上</option>
					</select>
					 -->
					<div class="CD1CD1">
						<p class="CPTtl1">その他</p>
						<label><input id="chkLSNewFlag" type="checkbox" name="checkbox1" class="SChk1" value="1" <?php if($request->getParam('newflag') == 1) echo " checked='checked' "; ?>  />新着サービス</label>
						<label><input id="chkLSCampaignFlag" type="checkbox" name="checkbox1" class="SChk1" value="" <?php if($request->getParam('campaignflag') == 1) echo " checked='checked' "; ?> />キャンペーン中</label>
						<label><input id="chkLSAnonymousFlag" type="checkbox" name="checkbox1" class="SChk1" value="" <?php if($request->getParam('anonymousflag') == 1) echo " checked='checked' "; ?> />匿名問い合わせOK</label>
					<!-- /CD1CD1 --></div>
				<!-- /CD1 --></div>
				
				<p class="CPBtn1"><input id="btnLSSearch" type="image" src="<?php echo ROOT_URL."/public"?>/img/common/BtnLSSearch1.jpg" alt="検索" onmouseout="swapimg(this)" onmouseover="swapimg(this)" /></p>
			<!-- /CDSearch1 --></div>
</form>
	<!-- /LS1CD1/LS1CD1W1 --></div></div>
	
	<?php if($this->ui_name == "u09_01"): ?>
	<?php if(count($this->otherlist1) != 0): ?>
	<div class="LS1CD1">
		<h2><img width="210" height="25" alt="この会社の他のサービス" src="<?php
	echo ROOT_URL . "/public"?>/img/common/TtlLS5.jpg"></h2>
		<div class="LS1CD1W1 APkg">
			<div class="CDService1">
				<ul>
				<?php foreach($this->otherlist1 as $item): ?>
				<li><a href="<?php echo ROOT_URL; ?>/service/servicedetail/id/<?php
		echo $item ['ServiceID'];
		?>"><img style="width:150px; height:110px;" alt="<?php echo $item ['ServiceName'];?>"
					src="<?php
		echo SERVICE_IMG_URL . $item ['ImageUrl'];
		?>" /></a>
					<span><a href="<?php echo ROOT_URL; ?>/service/servicedetail/id/<?php
		echo $item ['ServiceID'];
		?>">サービス名サービス名サービス名</a></span></li>
				<?php endforeach; ?>
				</ul>
			<!-- /CDService1 --></div>
	<!-- /LS1CD1/LS1CD1W1 --></div></div>
	<?php endif; ?>
	<?php if(count($this->otherlist2) != 0): ?>
	<div class="LS1CD1">
		<h2><img width="210" height="25" alt="同じカテゴリーの他社サービス" src="<?php
	echo ROOT_URL . "/public"?>/img/common/TtlLS6.jpg"></h2>
		<div class="LS1CD1W1 APkg">
			<div class="CDService1">
				<ul>
				<?php foreach($this->otherlist2 as $item): ?>
				<li><a href="<?php echo ROOT_URL; ?>/service/servicedetail/id/<?php
		echo $item ['ServiceID'];
		?>"><img style="width:150px; height:110px;" alt="<?php echo $item ['ServiceName'];?>"
					src="<?php
		echo SERVICE_IMG_URL . $item ['ImageUrl'];
		?>" /></a>
					<span><a href="<?php echo ROOT_URL; ?>/service/servicedetail/id/<?php
		echo $item ['ServiceID'];
		?>">サービス名サービス名サービス名</a></span></li>
				<?php endforeach; ?>
				</ul>
			<!-- /CDService1 --></div>
	<!-- /LS1CD1/LS1CD1W1 --></div></div>
	<?php endif; ?>
	<?php else: ?>
	<div class="LS1CD1">
		<h2><img src="<?php echo ROOT_URL."/public"?>/img/common/TtlLS3.jpg" alt="アスクルお仕事サポート" width="210" height="25" /></h2>
		<div class="LS1CD1W1 APkg">
			<div class="CDBanner1">
				<p><a href="/"><img src="<?php echo ROOT_URL."/public"?>/img/common/BnrLS3_1.jpg" alt="" width="190" height="190" /></a></p>
				<p class="AMBm0"><a href="/"><img src="<?php echo ROOT_URL."/public"?>/img/common/BnrLS3_2.jpg" alt="" width="190" height="100" /></a></p>
			<!-- /CDBanner1 --></div>
	<!-- /LS1CD1/LS1CD1W1 --></div></div>

	<div class="LS1CD1">
		<h2><img src="<?php echo ROOT_URL."/public"?>/img/common/TtlLS4.jpg" alt="アスクル関連サービス" width="210" height="25" /></h2>
		<div class="LS1CD1W1 APkg">
			<div class="CDBanner1">
				<p><a href="/"><img src="<?php echo ROOT_URL."/public"?>/img/common/BnrLS4_1.jpg" alt="" width="190" height="100" /></a></p>
				<p><a href="/"><img src="<?php echo ROOT_URL."/public"?>/img/common/BnrLS4_2.jpg" alt="" width="190" height="100" /></a></p>
				<p class="AMBm0"><a href="/"><img src="<?php echo ROOT_URL."/public"?>/img/common/BnrLS4_3.jpg" alt="" width="190" height="190" /></a></p>
			<!-- /CDBanner1 --></div>
	<!-- /LS1CD1/LS1CD1W1 --></div></div>
	
	<?php endif; ?>
	
<!-- /LS/LSW1 --></div>
</div>